package org.wutopia.examples.fluttertest;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class FlutterController {

    @GetMapping("/users/{id}")
    public User getUser(@PathVariable(name = "id") Long id) {
        User  user = new User();
        user.setId(id);
        user.setName("小帅吴");
        user.setEmail("98523@qq.com");
        return user;
    }
}
